package com.chaihu.intf.common;

import com.chaihu.bean.in.user.userinfo.QueryUserIn;
import com.chaihu.bean.out.user.userinfo.QueryUserOut;
import com.chaihu.bean.result.ResponseResult;
import com.chaihu.config.feign.FeignConfiguration;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


@FeignClient(name = "common-service", configuration = {FeignConfiguration.class})
@RequestMapping("/user")
@Api(tags = "查询用户信息")
public interface QueryUserInfoService {

    @ApiOperation(value = "查询用户信息")
    @PostMapping("/queryUser")
    ResponseResult<QueryUserOut> queryUser(@RequestBody QueryUserIn in);
}
